package com.vote.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vote.common.annotation.Excel;
import com.vote.common.core.domain.BaseEntity;
import java.util.List;
/**
 * 投票信息对象 vote_info
 * 
 * @author ruoyi
 * @date 2025-07-14
 */
public class VoteInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    // 状态常量
    public static final Integer STATUS_DRAFT = 0;    // 草稿
    public static final Integer STATUS_PUBLISHED = 1; // 已发布
    public static final Integer STATUS_ENDED = 2;     // 已结束


    /** 投票ID */
    private Long voteId;

    /** 投票标题 */
    @Excel(name = "投票标题")
    private String voteTitle;

    /** 投票描述 */
    @Excel(name = "投票描述")
    private String voteDesc;


    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    private List<Integer> statusList;
    private int participantCount;
    public List<VoteOption> voteOptions;
    private Long userId;

    private int voteCount;

    private String optionContent;

    public String getOptionContent() {
        return optionContent;
    }

    public void setOptionContent(String optionContent) {
        this.optionContent = optionContent;
    }

    public int getVoteCount() {
        return voteCount;
    }

    public void setVoteCount(int voteCount) {
        this.voteCount = voteCount;
    }



    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }



    public List<VoteOption> getVoteOptions() {
        return voteOptions;
    }

    public void setVoteOptions(List<VoteOption> voteOptions) {
        this.voteOptions = voteOptions;
    }



    public void setVoteId(Long voteId)
    {
        this.voteId = voteId;
    }

    public Long getVoteId()
    {
        return voteId;
    }

    public void setVoteTitle(String voteTitle)
    {
        this.voteTitle = voteTitle;
    }

    public String getVoteTitle()
    {
        return voteTitle;
    }

    public void setVoteDesc(String voteDesc)
    {
        this.voteDesc = voteDesc;
    }

    public String getVoteDesc()
    {
        return voteDesc;
    }

    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }

    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public List<Integer> getStatusList() {
        return statusList;
    }

    public void setStatusList(List<Integer> statusList) {
        this.statusList = statusList;
    }

    public int getParticipantCount() {
        return participantCount;
    }

    public void setParticipantCount(int participantCount) {
        this.participantCount = participantCount;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("voteId", getVoteId())
            .append("voteTitle", getVoteTitle())
            .append("voteDesc", getVoteDesc())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
